package com.yjd.comm.merchant.enums;

/**
 * Created by yjd-wap on 2017/10/25.
 */
public enum MerchantFundRefTabEnum {

    MFQ_CLEAR_DAY_MERCHANT("mfq_clear_day_merchant", "商户日结表"),
    MFQ_MERCHANT_CASH("mfq_merchant_cash", "商户提现记录表");
    private String code;
    private String label;

    public static MerchantFundRefTabEnum parse(String code){
        for (MerchantFundRefTabEnum fundsRefTableEnum : MerchantFundRefTabEnum.values()) {
            if(fundsRefTableEnum.getCode().equals(code)){
                return fundsRefTableEnum;
            }
        }
        return null;
    }

    private MerchantFundRefTabEnum(String code, String label) {
        this.code = code;
        this.label = label;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }
    public void setLabel(String label) {
        this.label = label;
    }
}
